package cn.kilo.infrastructure.persistent.dao;

import cn.kilo.domain.model.order.entity.OrderEntity;
import cn.kilo.domain.model.order.entity.StaffEntity;
import cn.kilo.infrastructure.persistent.po.Floor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author kilok
 */
@Mapper
public interface IFloorDao {
    Floor getSorter2Staff(@Param("order") OrderEntity order,@Param("floor") Integer floor);


    int beMainSorter2(@Param("staffEntity") StaffEntity staffEntity, @Param("floor") Integer floor);

    int beMinorSorter2(@Param("staffEntity") StaffEntity staffEntity, @Param("floor") Integer floor);

    Floor getFloor(@Param("ridgepole") String ridgepole, @Param("floor") Integer floor);

    List<Floor> getFloorByRidgepole(@Param("ridgepole") String ridgepole);

    Floor getFloorByRidgepoleAndValue(@Param("ridgepole") String ridgepole, @Param("value") String value);

    Floor getSorter2StaffByValue(@Param("order") OrderEntity order, @Param("value") String value);
}
